package com.it135.citytraffic.pojo.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;

import java.io.Serial;
import java.time.LocalDateTime;
import java.io.Serializable;

import lombok.*;
import lombok.experimental.Accessors;

@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("traffic_info")
public class TrafficInfo implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;



    private String name;

    /**
     * 畅通所占比例
     */
    private String expedite;

    /**
     * 缓行所占百分比
     */
    private String congested;

    /**
     * 拥堵所占百分比
     */
    private String blocked;

    /**
     * 未知路段所占百分比
     */
    private String unknown;

    /**
     * 路况,0未知;  1畅通;   2缓行;    3拥堵
     */
    private Integer status;

    /**
     * 时间
     */
    private LocalDateTime createTime;

    /**
     * 路况综述
     */
    private String description;

    /**
     * 检测路口的id
     */
    private Integer crossingId;

    private String weather;

    private String tianqi;

    private Integer temperature;

}
